if (TARGET hardware_flash)
    add_subdirectory_exclude_platforms(cache_perfctr "rp2350.*")
    add_subdirectory_exclude_platforms(nuke)
    add_subdirectory_exclude_platforms(program)
    add_subdirectory_exclude_platforms(ssi_dma "rp2350.*")
    add_subdirectory_exclude_platforms(xip_stream)
    add_subdirectory_exclude_platforms(runtime_flash_permissions rp2040)
else()
    message("Skipping flash examples as hardware_flash is unavailable on this platform")
endif()